package com.metering.purchaseServerAdmin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@EnableFeignClients(basePackages = {"com.bootdo"})
@SpringBootApplication(scanBasePackages = {"com.metering.purchaseServerAdmin", "com.metering.purchaseServerCommon.common.bean"})	//指定扫描com.metering.*包下的所有bean
@EnableCaching//注解是spring framework中的注解驱动的缓存管理功能。自spring版本3.1起加入了该注解。如果你使用了这个注解，那么你就不需要在XML文件中配置cache manager了，等价于 <cache:annotation-driven/> 。能够在服务类方法上标注@Cacheable

@EnableDiscoveryClient
public class PurchaseServerAdminApplication {

	public static void main(String[] args) {
		SpringApplication.run(PurchaseServerAdminApplication.class, args);
	}
}
